/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package org.ossr.portlets.pm.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * This class is used by
 * {@link org.ossr.portlets.pm.service.http.PrivateMessageServiceSoap}.
 * </p>
 *
 * @author    Edgar Zavala
 * @see       org.ossr.portlets.pm.service.http.PrivateMessageServiceSoap
 * @generated
 */
public class PrivateMessageSoap implements Serializable {
	public static PrivateMessageSoap toSoapModel(PrivateMessage model) {
		PrivateMessageSoap soapModel = new PrivateMessageSoap();

		soapModel.setMessageId(model.getMessageId());
		soapModel.setOwnerId(model.getOwnerId());
		soapModel.setRecepients(model.getRecepients());
		soapModel.setCreationDate(model.getCreationDate());
		soapModel.setIsReply(model.getIsReply());
		soapModel.setReplyDate(model.getReplyDate());
		soapModel.setDeleted(model.getDeleted());
		soapModel.setReaded(model.getReaded());
		soapModel.setSubject(model.getSubject());
		soapModel.setBody(model.getBody());

		return soapModel;
	}

	public static PrivateMessageSoap[] toSoapModels(PrivateMessage[] models) {
		PrivateMessageSoap[] soapModels = new PrivateMessageSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static PrivateMessageSoap[][] toSoapModels(PrivateMessage[][] models) {
		PrivateMessageSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new PrivateMessageSoap[models.length][models[0].length];
		}
		else {
			soapModels = new PrivateMessageSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static PrivateMessageSoap[] toSoapModels(List<PrivateMessage> models) {
		List<PrivateMessageSoap> soapModels = new ArrayList<PrivateMessageSoap>(models.size());

		for (PrivateMessage model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new PrivateMessageSoap[soapModels.size()]);
	}

	public PrivateMessageSoap() {
	}

	public long getPrimaryKey() {
		return _messageId;
	}

	public void setPrimaryKey(long pk) {
		setMessageId(pk);
	}

	public long getMessageId() {
		return _messageId;
	}

	public void setMessageId(long messageId) {
		_messageId = messageId;
	}

	public long getOwnerId() {
		return _ownerId;
	}

	public void setOwnerId(long ownerId) {
		_ownerId = ownerId;
	}

	public String getRecepients() {
		return _recepients;
	}

	public void setRecepients(String recepients) {
		_recepients = recepients;
	}

	public Date getCreationDate() {
		return _creationDate;
	}

	public void setCreationDate(Date creationDate) {
		_creationDate = creationDate;
	}

	public boolean getIsReply() {
		return _isReply;
	}

	public boolean isIsReply() {
		return _isReply;
	}

	public void setIsReply(boolean isReply) {
		_isReply = isReply;
	}

	public Date getReplyDate() {
		return _replyDate;
	}

	public void setReplyDate(Date replyDate) {
		_replyDate = replyDate;
	}

	public boolean getDeleted() {
		return _deleted;
	}

	public boolean isDeleted() {
		return _deleted;
	}

	public void setDeleted(boolean deleted) {
		_deleted = deleted;
	}

	public boolean getReaded() {
		return _readed;
	}

	public boolean isReaded() {
		return _readed;
	}

	public void setReaded(boolean readed) {
		_readed = readed;
	}

	public String getSubject() {
		return _subject;
	}

	public void setSubject(String subject) {
		_subject = subject;
	}

	public String getBody() {
		return _body;
	}

	public void setBody(String body) {
		_body = body;
	}

	private long _messageId;
	private long _ownerId;
	private String _recepients;
	private Date _creationDate;
	private boolean _isReply;
	private Date _replyDate;
	private boolean _deleted;
	private boolean _readed;
	private String _subject;
	private String _body;
}